Optimal. Leaf size=66 \[ \frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)+\frac {c \log \left (a^2 x^2+1\right )}{15 a^3}-\frac {1}{20} a c x^4+\frac {1}{3} c x^3 \tan ^{-1}(a x)-\frac {c x^2}{15 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {4950, 4852, 266, 43} \[ \frac {c \log \left (a^2 x^2+1\right )}{15 a^3}+\frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)-\frac {1}{20} a c x^4-\frac {c x^2}{15 a}+\frac {1}{3} c x^3 \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 266
Rule 4852
Rule 4950
Rubi steps
\begin {align*} \int x^2 \left (c+a^2 c x^2\right ) \tan ^{-1}(a x) \, dx &=c \int x^2 \tan ^{-1}(a x) \, dx+\left (a^2 c\right ) \int x^4 \tan ^{-1}(a x) \, dx\\ &=\frac {1}{3} c x^3 \tan ^{-1}(a x)+\frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)-\frac {1}{3} (a c) \int \frac {x^3}{1+a^2 x^2} \, dx-\frac {1}{5} \left (a^3 c\right ) \int \frac {x^5}{1+a^2 x^2} \, dx\\ &=\frac {1}{3} c x^3 \tan ^{-1}(a x)+\frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)-\frac {1}{6} (a c) \operatorname {Subst}\left (\int \frac {x}{1+a^2 x} \, dx,x,x^2\right )-\frac {1}{10} \left (a^3 c\right ) \operatorname {Subst}\left (\int \frac {x^2}{1+a^2 x} \, dx,x,x^2\right )\\ &=\frac {1}{3} c x^3 \tan ^{-1}(a x)+\frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)-\frac {1}{6} (a c) \operatorname {Subst}\left (\int \left (\frac {1}{a^2}-\frac {1}{a^2 \left (1+a^2 x\right )}\right ) \, dx,x,x^2\right )-\frac {1}{10} \left (a^3 c\right ) \operatorname {Subst}\left (\int \left (-\frac {1}{a^4}+\frac {x}{a^2}+\frac {1}{a^4 \left (1+a^2 x\right )}\right ) \, dx,x,x^2\right )\\ &=-\frac {c x^2}{15 a}-\frac {1}{20} a c x^4+\frac {1}{3} c x^3 \tan ^{-1}(a x)+\frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)+\frac {c \log \left (1+a^2 x^2\right )}{15 a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 66, normalized size = 1.00 \[ \frac {1}{5} a^2 c x^5 \tan ^{-1}(a x)+\frac {c \log \left (a^2 x^2+1\right )}{15 a^3}-\frac {1}{20} a c x^4+\frac {1}{3} c x^3 \tan ^{-1}(a x)-\frac {c x^2}{15 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 62, normalized size = 0.94 \[ -\frac {3 \, a^{4} c x^{4} + 4 \, a^{2} c x^{2} - 4 \, {\left (3 \, a^{5} c x^{5} + 5 \, a^{3} c x^{3}\right )} \arctan \left (a x\right ) - 4 \, c \log \left (a^{2} x^{2} + 1\right )}{60 \, a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 57, normalized size = 0.86 \[ -\frac {c \,x^{2}}{15 a}-\frac {a c \,x^{4}}{20}+\frac {c \,x^{3} \arctan \left (a x \right )}{3}+\frac {a^{2} c \,x^{5} \arctan \left (a x \right )}{5}+\frac {c \ln \left (a^{2} x^{2}+1\right )}{15 a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 63, normalized size = 0.95 \[ -\frac {1}{60} \, a {\left (\frac {3 \, a^{2} c x^{4} + 4 \, c x^{2}}{a^{2}} - \frac {4 \, c \log \left (a^{2} x^{2} + 1\right )}{a^{4}}\right )} + \frac {1}{15} \, {\left (3 \, a^{2} c x^{5} + 5 \, c x^{3}\right )} \arctan \left (a x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.23, size = 58, normalized size = 0.88 \[ \frac {\frac {c\,\ln \left (a^2\,x^2+1\right )}{15}-\frac {a^2\,c\,x^2}{15}}{a^3}+\frac {c\,x^3\,\mathrm {atan}\left (a\,x\right )}{3}-\frac {a\,c\,x^4}{20}+\frac {a^2\,c\,x^5\,\mathrm {atan}\left (a\,x\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.00, size = 61, normalized size = 0.92 \[ \begin {cases} \frac {a^{2} c x^{5} \operatorname {atan}{\left (a x \right )}}{5} - \frac {a c x^{4}}{20} + \frac {c x^{3} \operatorname {atan}{\left (a x \right )}}{3} - \frac {c x^{2}}{15 a} + \frac {c \log {\left (x^{2} + \frac {1}{a^{2}} \right )}}{15 a^{3}} & \text {for}\: a \neq 0 \\0 & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________